package old.apiday01;
//判断当前字符串是否以给定
// \符串开始
public class StartWithDemo {
    public static void main(String[] args) {
        String str="thinking in java";
        boolean starts=str.startsWith("think");
        System.out.println(starts);
        boolean ends=str.endsWith("vaa");
        System.out.println(ends);


    }
}
